import { http } from '@/utils/request'

export const login = (data: any) => {
  return http.post('/auth/login', data)
}
export const getCaht = () => {
  return http.get('/auth/Captcha?time=' + new Date().getTime(), undefined)
}
export const addUserData = (data: any) => {
  return http.post('/users', data)
}
export const getUserData = (params: any) => {
  return http.request('get', '/users', undefined, { params })
}
